<%@page import="java.util.List"%>
<%@page import="de.fhb.itunes.repository.data.Album_VO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="AlbumSearch" method="post" >
<h3>Geben sie einen suchbegriff ein</h3><br>
<input name="search" type = "text" size=100> <input type="submit" value="Suchen"><br>
</form>
<%
	if( ((Boolean)request.getAttribute("success")) ) {
		List<Album_VO> albumListe = (List<Album_VO>)request.getAttribute("resultSet");
		for(Album_VO album : albumListe)
			out.println(album.getAlbumname() + " : " + album.getAlbuminterpret() +"<br>");
	}
	else
		out.print("Da ging etwas schief");
			
		
	
	
%>



</body>
</html>